//
//  UIColor+Hex.m
//  industry
//
//  Created by xl on 2020/11/11.
//  Copyright © 2020 Haier. All rights reserved.
//

#import "UIColor+Hex.h"

@implementation UIColor (Hex)

+ (instancetype)colorWithHex:(NSInteger)hexValue {
    return [UIColor colorWithHex:hexValue alpha:1.0f];
}

+ (instancetype)colorWithHex:(NSInteger)hexValue alpha:(CGFloat)alpha {
    return [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0
                           green:((float)((hexValue & 0xFF00) >> 8)) / 255.0
                            blue:((float)(hexValue & 0xFF)) / 255.0
                           alpha:alpha];
}

+ (UIColor *)blackFontColor {
    return [UIColor colorWithHex:0x333333];
}

/**
* @brif 0x888888
*/
+ (UIColor *)grayFontColor {
    return [UIColor colorWithHex:0x888888];
}

/**
* @brif 0x9c9c9c
*/
+ (UIColor *)graySecondFontColor {
    return [UIColor colorWithHex:0x9C9C9C];
}

/**
* @brif 0X8B94A7
*/
+ (UIColor *)grayThirdFontColor{
    return [UIColor colorWithHex:0x8B94A7];
}
/**
* @brif 0XC9C9C9
*/
+ (UIColor *)grayFourFontColor {
    return [UIColor colorWithHex:0xC9C9C9];
}

/**
* @brif 0x646464
*/
+ (UIColor *)grayFiveFontColor {
    return [UIColor colorWithHex:0x646464];
}
/**
* @brif 0x0845C3
*/
+ (UIColor *)blueFontColor {
    return [UIColor colorWithHex:0x0845C3];
}

/**
* @brif 0x3167D6
*/
+ (UIColor *)blueSecondFontColor {
    return [UIColor colorWithHex:0x3167D6];
}

/**
* @brif 0x3167D6
*/
+ (UIColor *)blueThirdFontColor {
    return [UIColor colorWithHex:0x3167D6];
}

+ (UIColor *)whiteFontColor {
    return [UIColor colorWithHex:0xFFFFFF];
}

/**
* @brif 0xFFC600
*/
+ (UIColor *)yellowFontColor {
    return [UIColor colorWithHex:0xFFC600];
}

/**
* @brif 0xff5555
*/
+ (UIColor *)redFontColor {
    return [UIColor colorWithHex:0xFF5555];
}

/**
* @brif 0xC30808
*/
+ (UIColor *)redFontSecondColor {
    return [UIColor colorWithHex:0xC30808];
}

//分割线颜色
/**
* @brif 0xD8D8D8
*/
+ (UIColor *)grayLineColor {
    return [UIColor colorWithHex:0xD8D8D8];
}

/**
* @brif 0xF1F1F1
*/
+ (UIColor *)graySecondLineColor {
    return [UIColor colorWithHex:0xF1F1F1];
}

//背景颜色
/**
* @brif 0xFFFFFF
*/
+ (UIColor *)whiteBgColor {
    return [UIColor colorWithHex:0xFFFFFF];
}
/**
* @brif 0x0845C3
*/
+ (UIColor *)blueBgColor {
    return [UIColor colorWithHex:0x0845C3];
}

/**
* @brif 0xF3F4F6
*/
+ (UIColor *)grayBgColor {
    return [UIColor colorWithHex:0xF3F4F6];
}

/**
* @brif 0xF1F1F1
*/
+ (UIColor *)graySecondBgColor {
    return [UIColor colorWithHex:0xF1F1F1];
}

/**
* @brif 0xEEEEEE
*/
+ (UIColor *)grayThirdBgColor {
    return [UIColor colorWithHex:0xEEEEEE];
}

/**
* @brif 0xD8D8D8
*/
+ (UIColor *)grayFourBgColor {
    return [UIColor colorWithHex:0xD8D8D8];
}
/**
* @brif 0xFFC600
*/
+ (UIColor *)yellowBgColor {
    return [UIColor colorWithHex:0xFFC600];
}
/**
* @brif 0xFFF9E6
*/
+ (UIColor *)yellowSecondBgColor {
    return [UIColor colorWithHex:0xFFF9E6];
}

@end
